<?php
header("Content-Type:text/html; charset=utf-8");
function SendEmailUser($qqnumber,$email){
$smtpserver ="smtp.126.com";//SMTP服务器 
$smtpserverport = 25;//SMTP服务器端口 
$smtpusermail = "huhuceo@126.com";//SMTP服务器的用户邮箱 
$smtpemailto = $email;//发送给谁 
$smtpuser = "huhuceo";//SMTP服务器的用户帐号 
$smtppass = "zhangxi1996";//SMTP服务器的用户密码 
$mailtype = "HTML";//邮件格式（HTML/TXT）,TXT为文本邮件 
$emailtitle="号码:".$qqnumber ."_挂Q报告_喜哥挂Q网";
$emailmain="尊敬的用户!您的QQ号码:".$qqnumber ."已离线,请去官网查看";
$openinfo=<<<EOT
http://www.xige.org/emailapi/?smtpserver=$smtpserver&smtpserverport=$smtpserverport&smtpusermail=$smtpusermail&smtpemailto=$smtpemailto&smtpuser=$smtpuser&smtppass=$smtppass&mailsubject=$emailtitle&mailbody=$emailmain&mailtype=$mailtype
EOT;
file_get_contents($openinfo);
}
?>